package com.drug.mapper;

import com.drug.domain.DrugInformation;
import com.drug.domain.Manufacturer;
import com.drug.domain.Statistics2;
import com.drug.domain.Supplier;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SupplierMapper {

    int deleteByPrimaryKey(Integer surId);

    int insert(Supplier record);

    int insertSelective(Supplier record);

    Supplier selectByPrimaryKey(Integer surId);

    int updateByPrimaryKeySelective(Supplier record);

    int updateByPrimaryKey(Supplier record);

    List<Supplier> selectAllSp();

    List<Supplier> selectAllStatistics(Statistics2 statistics2);
	 // ¶àÌõ¼þ²éÑ¯ ¹©»õÉÌ
    List<Supplier> selectSupplier(Supplier supplier);
    // ·ÖÒ³²éÑ¯
    List<Supplier> pageSupplierFindAll();
    // Âß¼­É¾³ý
    void deleteSupplier(Integer surId);
    // Ôö¼Ó
    void insertSupplier(Supplier supplier);
    //²éÑ¯
    public Supplier selectSupplierById(Integer id);
    // ÐÞ¸Ä
    void updateSupplier(Supplier supplier);
	
	/**
     * 查询所有供货商
     * @return
     */

    List<Supplier> selectAll();
    //查询供货商名字
    List<Supplier> selectSupplier1(String surName);
}